home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Present…ry 5: (Reseller Edition)
/
Apple Reference & Presentations Library 5.0 (Reseller Edition).iso
/
5-Fonts & Software
/
Applications
/
DesignStudio
/
DesignStudio™ 1.01
/
DesignStudio™ 1.01.rsrc
/
PSCD_273
< prev
next >
Wrap
Text File
|
1990-08-09
|
582b
|
18 lines
/mgsetcmyk[
{pop pop pop cmyk2gray}
{pop pop exch pop cmyk2gray}
{pop 3 1 roll pop pop cmyk2gray}
{4 1 roll pop pop pop cmyk2gray}
]def
/mgcmyksetup{mgsetcmyk exch get/setcmykcolor exch bdf}def
/invert{1. exch sub}bdf
/cmyk2gray{invert setgray}bdf
/setcmykcolor{mgp4 1 setgray}bdf
/setgray{invert 0 0 0 4 -1 roll setcmykcolor}bdf
/rgb2cmy{3{invert 3 1 roll}repeat}bdf
/min{2 copy lt{1}{0}ifelse index}bdf
/doUCR{min 3 index min 4 1 roll
3{3 index sub 3 1 roll}repeat 4 -1 roll}bdf
/setrgbcolor{rgb2cmy doUCR setcmykcolor}bdf
/sethsbcolor{sethsbcolor currentrgbcolor setrgbcolor}bdf